import ajax from '@/utils/ajax';
import request from '@/utils/request'
export default {
    // 合同作废
    contractInvalidation(data) {
        return ajax({
            url: '/proContract/contractInvalidation',
            method: 'post',
            data
        })
    },
    // 定金合同关联装修合同
    DJHTRelationZXHT(data) {
        return ajax({
            url: '/proContract/DJHTRelationZXHT',
            method: 'post',
            data
        })
    },
    // 导出合同
    exportContractExcel(data) {
        return ajax({
            url: '/proContract/exportContractExcel',
            method: 'get',
            data
        })
    },
    // 添加合同
    addContract(data) {
        return ajax({
            url: '/proContract/addContract',
            method: 'post',
            data
        })
    },
    // 获取合同列表
    getContractList(data) {
        return ajax({
            url: '/proContract/getContractList',
            method: 'get',
            data
        })
    },
    // 获取合同详情
    getContractDetails(data) {
        return ajax({
            url: '/proContract/getContractDetails',
            method: 'get',
            data
        })
    },
}